Itertools permutions takes an iterable and length then returns all variations

welcome to shbcf.ru